package main

import (
	"fmt"
	"my_go_open/utils"
)

func main() {
	q, _ := utils.NewQueue(5)
	q.Push(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
	for i := 0; i < 10; i++ {
		if a, ok := q.Pop(); ok {
			fmt.Printf("%v\n", a)
		} else {
			break
		}
	}
	q.Push(10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
	fmt.Printf("%v\n", q.PopAll())
}
